<?php
/**
* @project ApPHP Medical Appointment
* @copyright (c) 2012 ApPHP
* @author ApPHP <info@apphp.com>
* @license http://www.gnu.org/licenses/
*/

// *** Make sure the file isn't accessed directly
defined('APPHP_EXEC') or die('Restricted Access');
//--------------------------------------------------------------------------

if(Modules::IsModuleInstalled('appointments') && ModulesSettings::Get('appointments', 'is_active') == 'yes'){
    if($objLogin->IsLoggedInAsPatient()){	
        //$objSession->SetMessage('notice', _MUST_BE_LOGGED);
        header('location: index.php?patient=appointment_verify');
        exit;
    }
}

?>